FROM nginx:latest
LABEL MAINTAINER=zhouzheng03@inspur.com
COPY dist/ /etc/nginx/html/
##用本地的 nginx.conf 配置来替换nginx镜像里的默认配置
COPY nginx/nginx.conf /etc/nginx/nginx.conf
#声明前端项目统一的日志挂载路径
VOLUME [ "/var/log" ]
## 声明工作空间
WORKDIR /etc/nginx/html
##暴露端口，如果443端口需要暴露则调整为443
EXPOSE 9997
CMD ["nginx", "-g", "daemon off;"]